import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;
import javax.swing.JList;
/**
 * 
 */

/**
 * @author andrinib
 *
 */
public class VueRechercheTitre extends Vue {
	private JTextField textFieldMot;

	/**
	 * @param controleur
	 */
	public VueRechercheTitre(Controleur controleur) {
		super(controleur);
		getContentPane().setLayout(null);
		
		JLabel lblMotRechercher = new JLabel("Mot à rechercher :");
		lblMotRechercher.setBounds(150, 48, 128, 15);
		getContentPane().add(lblMotRechercher);
		
		textFieldMot = new JTextField();
		textFieldMot.setBounds(340, 46, 114, 19);
		getContentPane().add(textFieldMot);
		textFieldMot.setColumns(10);
		
		JButton btnAnnuler = new JButton("Annuler");
		btnAnnuler.setBounds(171, 89, 107, 25);
		getContentPane().add(btnAnnuler);
		
		JButton btnRechercher = new JButton("Rechercher");
		btnRechercher.setBounds(340, 89, 107, 25);
		getContentPane().add(btnRechercher);
		
		JLabel lblOuvrages = new JLabel("Ouvrages :");
		lblOuvrages.setBounds(204, 166, 74, 15);
		getContentPane().add(lblOuvrages);
		
		JScrollPane scrollPaneOuvrage = new JScrollPane();
		scrollPaneOuvrage.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		scrollPaneOuvrage.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
		scrollPaneOuvrage.setBounds(340, 166, 215, 93);
		getContentPane().add(scrollPaneOuvrage);
		
		JList listOuvrage = new JList();
		scrollPaneOuvrage.setViewportView(listOuvrage);
		
		JScrollPane scrollPanePeriodique = new JScrollPane();
		scrollPanePeriodique.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
		scrollPanePeriodique.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		scrollPanePeriodique.setBounds(340, 271, 215, 93);
		getContentPane().add(scrollPanePeriodique);
		
		JList listPeriodique = new JList();
		scrollPanePeriodique.setViewportView(listPeriodique);
		
		JScrollPane scrollPaneArticle = new JScrollPane();
		scrollPaneArticle.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		scrollPaneArticle.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
		scrollPaneArticle.setBounds(340, 376, 215, 93);
		getContentPane().add(scrollPaneArticle);
		
		JList listArticle = new JList();
		scrollPaneArticle.setViewportView(listArticle);
		
		JLabel lblPriodiques = new JLabel("Périodiques :");
		lblPriodiques.setBounds(186, 271, 92, 15);
		getContentPane().add(lblPriodiques);
		
		JLabel lblArticles = new JLabel("Articles :");
		lblArticles.setBounds(217, 376, 61, 15);
		getContentPane().add(lblArticles);
		
		JButton btnFermer = new JButton("Fermer");
		btnFermer.setBounds(253, 478, 107, 25);
		getContentPane().add(btnFermer);
		// TODO Auto-generated constructor stub
	}
}
